//
//  KJLabel.m
//  AnItemForACar
//
//  Created by Jack on 16/8/31.
//  Copyright © 2016年 shiying. All rights reserved.
//

#import "KJLabel.h"

@implementation KJLabel

- (instancetype)initWithFrame:(CGRect)frame text:(NSString *)text {
    self = [super initWithFrame:frame];
    if (self) {
        self.text = text;
        self.font = [UIFont systemFontOfSize:frame.size.height];
        self.textAlignment = NSTextAlignmentCenter;
    }
    return self;
}

- (instancetype)initWithFrame:(CGRect)frame text:(NSString *)text textColor:(UIColor *)color {
    self = [super initWithFrame:frame];
    if (self) {
        self.text = text;
        self.font = [UIFont systemFontOfSize:frame.size.height];
        self.textColor = color;
        self.textAlignment = NSTextAlignmentCenter;
    }
    return self;
}

@end
